package com.cai.io.demo;

import java.io.FileInputStream;
import java.io.IOException;

public class FisDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("demo.txt");
        int n;
        while ((n=fis.read())!=-1){
            System.out.println(n);
        }
        fis.close();
    }
}
